package com.itheima.reggie.service.impl;

import com.itheima.reggie.mapper.PayMapper;
import com.itheima.reggie.service.PayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PayServiceImpl implements PayService {

    @Autowired(required = false)
    private PayMapper payMapper;

    @Override
    public Boolean findStatus(Long id) {
        int status = payMapper.findStatus(id);
        if (status == 1){
            return true;
        }else {
            return false;
        }
    }
}
